package com.forg.mvc.job;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;

import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class SayHelloJob2 implements Job{
    
    private static final Logger logger = LoggerFactory.getLogger(    SayHelloJob2.class);
    
    private static final DateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

    private int i = 0 ;
    @Override
    public void execute(JobExecutionContext context) throws JobExecutionException {
        
        logger.debug("[{}]hello2~{}",df.format(new Date()),i++);
    }

}
